/**
 * Created by Panda on 16/8/12
 */
(function () {
    'use strict';

    angular
        .module('com.akxx.aqzyk')
        .factory('httpInterceptor', httpInterceptor);


    /** @ngInject */
    function httpInterceptor($q, $injector) {
        return {
            'request': function (config) {
                return config;
            },
            'requestError': function (config) {
                return $q.reject(config);
            },
            'response': function (response) {
                return response;
            },
            'responseError': function (response) {
                return $q.reject(response);
            }
        };
    }


})();
